package andriod.samples;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;


public class ActivityRelativeLayout extends Activity {
	
	Button button1;

	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);		
		setContentView(R.layout.relative_layout);
		
		button1 = (Button) findViewById(R.id.ok);
		button1.setOnClickListener(button_listener);

		
	}
	
	private Button.OnClickListener button_listener = new Button.OnClickListener(){
		public void onClick(View v) {
			setTitle("button is clicked");
			button1.setVisibility(View.INVISIBLE);
			button1.setVisibility(View.VISIBLE);
		}
	};
}